import request from '@/utils/request'

// 修改密码
export function editPass(ruleForm2) {
  return request({
    url: '/editpass',
    method: 'post',
    data: {
      oldPass: ruleForm2.oldPass,
      newPass: ruleForm2.newPass,
      checkPass: ruleForm2.checkPass
    }
  })
}

// 当前用户信息
export function getUserMessage(data) {
  return request({
    url: '/index',
    method: 'post',
    data: data
  })
}
